<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateExpertsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('experts', function (Blueprint $table) {
            $table->id();
            $table->string('name',100);//专家名
            $table->string('title',100);//职称
            $table->string('job',100);//职务
            $table->string('image',100)->default('/assets/test_images/e2.jpg');//头像
            $table->string('department',100);//科室
            $table->string('hospital',100);//医院
            $table->text('introduce');//介绍
            $table->text('education');//接受教育
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('experts');
    }
}
